package com.songlanyun.modules.goods.model.dto;

import com.songlanyun.common.drive.ValueObject;
import com.songlanyun.common.enums.GoodsConstant;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * 商品审核，上架下架用的DTO
 */
@Data
public class GoodsStatusDTO implements ValueObject {

    /**
     * 商品id
     */
    @NotNull(message="必须给商品标识")
    private Long goodsId;
    @Range(min = 1,max = 2,message = "商品审核只能是1通过，2不通过")
    private Integer verifyStatus;

    private Boolean added=false;

    /**
     * 热销
     */
    private  Boolean hot;

    /**
     * 是否是新品
     */
    private  Boolean newGoods;

    /**
     * 是否推荐
     */
    private  Boolean recommend;


    /**
     * 平台商家指定商品是否可以代销
     */
    private Boolean ableProxySale;

    /**
     * 说明
     */
    private String remark;

    /**
     * 是否开启会员折扣
     */
    private Boolean openUserDiscount;

    /**
     * 礼包类型
     */
    private Integer giftType;


}
